package com.suntech.lanq
{
	import flash.net.NetworkInfo;
	import flash.net.NetworkInterface;
	
	import mx.collections.ArrayCollection;

	public class FindInterfaces
	{
		//public static var interfacesAC:ArrayCollection=new ArrayCollection();
		// ip地址=interfacesAC[size].addresses[0].address;
		public function getInterfaces():ArrayCollection
		{
			var interfacesAC:ArrayCollection=new ArrayCollection();
			var ni:NetworkInfo=NetworkInfo.networkInfo;
			var interfaceVector:Vector.<NetworkInterface>=ni.findInterfaces();

			for each (var item:NetworkInterface in interfaceVector)
			{
				interfacesAC.addItem(item);
			}
			return interfacesAC;
		}

		public function FindInterfaces()
		{
		}
	}
}
